<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::evaluable_solution类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1evaluable__solution.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classmets_1_1evaluable__solution-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::evaluable_solution类 参考<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__model.html">Model</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>A copyable and evaluable solution implementation,  
 <a href="classmets_1_1evaluable__solution.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="model_8hh_source.html">model.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::evaluable_solution 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1evaluable__solution.png" usemap="#mets::evaluable_5Fsolution_map" alt=""/>
  <map id="mets::evaluable_5Fsolution_map" name="mets::evaluable_5Fsolution_map">
<area href="classmets_1_1feasible__solution.html" title="interface of a feasible solution space to be searched with tabu search." alt="mets::feasible_solution" shape="rect" coords="0,0,378,24"/>
<area href="classmets_1_1copyable.html" title="An interface for copyable objects." alt="mets::copyable" shape="rect" coords="388,0,766,24"/>
<area href="classmets_1_1permutation__problem.html" title="An abstract permutation problem." alt="mets::permutation_problem" shape="rect" coords="0,112,378,136"/>
<area href="classpcl_1_1_global_hypotheses_verification_1_1_s_a_model.html" alt="pcl::GlobalHypothesesVerification&lt; ModelT, SceneT &gt;::SAModel" shape="rect" coords="388,112,766,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9ef212cb6a07b57bf34d0af60deb6fad"><td class="memItemLeft" align="right" valign="top">virtual gol_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1evaluable__solution.html#a9ef212cb6a07b57bf34d0af60deb6fad">cost_function</a> () const =0</td></tr>
<tr class="memdesc:a9ef212cb6a07b57bf34d0af60deb6fad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cost function to be minimized.  <a href="classmets_1_1evaluable__solution.html#a9ef212cb6a07b57bf34d0af60deb6fad">更多...</a><br /></td></tr>
<tr class="separator:a9ef212cb6a07b57bf34d0af60deb6fad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1feasible__solution"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1feasible__solution')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1feasible__solution.html">mets::feasible_solution</a></td></tr>
<tr class="memitem:ab15b3260d5e1eec2a79e103347ca788f inherit pub_methods_classmets_1_1feasible__solution"><td class="memItemLeft" align="right" valign="top"><a id="ab15b3260d5e1eec2a79e103347ca788f"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1feasible__solution.html#ab15b3260d5e1eec2a79e103347ca788f">~feasible_solution</a> ()</td></tr>
<tr class="memdesc:ab15b3260d5e1eec2a79e103347ca788f inherit pub_methods_classmets_1_1feasible__solution"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual dtor. <br /></td></tr>
<tr class="separator:ab15b3260d5e1eec2a79e103347ca788f inherit pub_methods_classmets_1_1feasible__solution"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1copyable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1copyable')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1copyable.html">mets::copyable</a></td></tr>
<tr class="memitem:a921b1ddbd9341fd63def9454b90a617e inherit pub_methods_classmets_1_1copyable"><td class="memItemLeft" align="right" valign="top"><a id="a921b1ddbd9341fd63def9454b90a617e"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>copy_from</b> (const <a class="el" href="classmets_1_1copyable.html">copyable</a> &amp;)=0</td></tr>
<tr class="separator:a921b1ddbd9341fd63def9454b90a617e inherit pub_methods_classmets_1_1copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A copyable and evaluable solution implementation, </p>
<p>All you need, if you implement your own <a class="el" href="classmets_1_1solution__recorder.html" title="The solution recorder is used by search algorithm, at the end of each iteration, to record the best s...">mets::solution_recorder</a>, is to derive from the almost empty <a class="el" href="classmets_1_1feasible__solution.html" title="interface of a feasible solution space to be searched with tabu search.">mets::feasible_solution</a>. However, if you want to use the provided mets::best_ever_recorder you need to derive from this class (that also defines an interface to copy and evaluate a solution).</p>
<dl class="section see"><dt>参见</dt><dd>mets::best_ever_recorder </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a9ef212cb6a07b57bf34d0af60deb6fad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ef212cb6a07b57bf34d0af60deb6fad">&#9670;&nbsp;</a></span>cost_function()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual gol_type mets::evaluable_solution::cost_function </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cost function to be minimized. </p>
<p>The cost function is the target that the search algorithm tries to minimize.</p>
<p>You must implement this for your problem. </p>

<p>在 <a class="el" href="classpcl_1_1_global_hypotheses_verification_1_1_s_a_model.html#a882d6110d9626f863f6cc7156e044f8a">pcl::GlobalHypothesesVerification&lt; ModelT, SceneT &gt;::SAModel</a> , 以及 <a class="el" href="classmets_1_1permutation__problem.html#a99eb2edeb0132b1c92bd146bda766b30">mets::permutation_problem</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="model_8hh_source.html">model.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1evaluable__solution.html">evaluable_solution</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
